package cn.com.api.service;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;

import cn.com.api.entity.ApiT_Cash;
import cn.com.api.entity.ApiT_shops_apply;
import cn.com.api.entity.ApiT_shops_pay_records;
import cn.com.api.service.base.T_shops_applyServiceBase;
import cn.com.util.*;

/**
 * 
 */
@Service
public interface ApiT_shops_applyService extends T_shops_applyServiceBase {

	public void addApply(ApiT_shops_apply apply);
	
	public List<Map<String,Object>> searAll(String sname,String stime,String etime);
	
	public boolean updateMoneyAndRem(String money,String remark,String id);
	
	public Map<String,Object> searById(String id);
	
	public boolean updateMoneyAndRemAndStatus(String money,String remark,String status,String id);
	
	public boolean updateCheck(String lose,String status,String id);
	
	public boolean updatePayMoney(String num,String id);
	
	public List<Map<String,Object>> searByShopLog(String shopid);
	/**
	 * 根据不同的条件得到转账（已审核，可以进行打款了）(预付款)列表
	 * @param condition 可以为null
	 * @param pageInfo
	 * @return
	 */
	public List<ApiT_shops_apply> checkedTransferList(ApiT_shops_apply conditions,PageInfo pageInfo);
 
	/**
	 * 根据不同的条件得到转账（已审核，可以进行打款了）(商家提现)列表
	 * @param condition 可以为null
	 * @param pageInfo
	 * @return
	 */
	public List<ApiT_Cash> checkedCashTransferList(ApiT_Cash conditions,PageInfo pageInfo);
 
	/**
	 * 更新商家提现状态
	 * @param cashId  cashId
	 * @param applyMondy 申请的金额
	 * @return
	 */
   public int updatCashPay(int cashId,int shopId,String applyMoney,ApiT_shops_pay_records payRecord);
}


